package com.springboot.springboot3.Mybatis.service.impl;

import com.springboot.springboot3.Mybatis.mapper.CityMapper;
import com.springboot.springboot3.Mybatis.service.CityService;
import com.springboot.springboot3.bean.City;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName:
 * @author: CKC
 * @DateTime: 2021/1/29 10:02
 */

@Service
public class CityServiceImplement implements CityService {
    @Autowired
    CityMapper cityMapper;
    
    @Override
    public City getById(Long id) {
        return cityMapper.getById(id);
    }
    
    @Override
    public void save(City city) {
        cityMapper.inset(city);
    }
}
